let modules = {}
const files = require.context('../pages/modules', true, /\.vue/)
files.keys().forEach(fileName => {
  const reqCom = files(fileName)
  const reqComName = reqCom.name || fileName.replace(/\.\/(.*)\.vue/, '$1')
  modules[reqComName] = reqCom.default || reqCom
})

export var components = modules
